package com.lhd.action.visitor;

/**
 * @Author: liuhd
 * @Date: 2024/12/19 15:24
 * @Description:
 */
public class VisitorB extends Visitor {
    @Override
    void visit(Apple apple) {
        System.out.println("VisitorB.visit.Apple");
    }

    @Override
    void visit(Book book) {
        System.out.println("VisitorB.visit.Book");
    }
}
